package com.qdc.datacenters.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qdc.datacenters.domain.query.rule.ChatMsgRuleQuery;
import com.qdc.datacenters.domain.vo.rule.ChatMsgRuleListVo;
import com.qdc.datacenters.domain.vo.rule.ChatMsgRuleVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import com.qdc.datacenters.domain.entity.ChatMsgRule;

import java.util.List;

/**
 * 会话超时规则表(ChatMsgRule)表数据库访问层
 *
 * @author danmo
 * @since 2024-03-18 10:12:11
 */
@Repository()
@Mapper
public interface ChatMsgRuleMapper extends BaseMapper<ChatMsgRule> {

    ChatMsgRuleVo getRuleDetail(ChatMsgRuleQuery query);

    List<ChatMsgRuleListVo> getRuleList(ChatMsgRuleQuery query);

    List<Long> getRuleIdsByQuery(ChatMsgRuleQuery query);

    List<ChatMsgRuleListVo> getRuleListByUserId(ChatMsgRuleQuery query);
}

